var combobox_model = Ext.create('Ext.form.field.ComboBox',{
	xtype		: 'combo',
	id			: 'modelName',
    name		: 'modelName',
    queryMode	: 'remote',
    width		: 460,
//    labelWidth	: 30,
    editable	: false,
    allowBlank	: true,
    typeAhead	: true,
//    pageSize	: 30,
    minChars	: 1,
    emptyText	: '请选择模块',
    listeners	: {
    	select	: function(combo, records, eOpts){
    		Ext.getCmp('primaryKey').store.getProxy().setExtraParams({
    			clazz:records.data.name
    		});
    		Ext.getCmp('primaryKey').store.reload();
    		
    		Ext.getCmp('code').store.getProxy().setExtraParams({
    			clazz:records.data.name
    		});
    		Ext.getCmp('code').store.reload();
    	}
    },
    store: new Ext.data.JsonStore({
	    pageSize: 30,
	    autoLoad:true,
	    proxy: {
	        type: 'ajax',
	        url: '/codemaker/modelSelect.json',
	        reader: {
	            type: 'json',
	            totalProperty:'totalCount'
	        }
	    },
	    fields: ['name','name'],
	    listeners:{
	    	load:function(){
	    	}
	    }
	}),
    valueField		: 'name',
    displayField	: 'name',
    triggerAction	: 'all',
    fieldLabel		: '模块名称'
});